package com.pubg.service.impl;

import com.pubg.dao.ProductTypeDao;
import com.pubg.dao.impl.ProductTypeDaoImpl;
import com.pubg.entity.ProductType;
import com.pubg.service.ProductTypeService;

import java.util.List;

/**
 * @ClassName ProductTypeServiceImpl
 * @Author WangYuanXiang
 * @Date 2019/4/24 17:32
 **/
public class ProductTypeServiceImpl implements ProductTypeService {
    private ProductTypeDao productTypeDao = new ProductTypeDaoImpl();
    @Override
    public List<ProductType> getList() {
        return productTypeDao.getList();
    }

    @Override
    public ProductType getType(int value) {
        return productTypeDao.getType(value);
    }
}
